package lab03.test06;

import java.util.Calendar;

public class Test {
    public static void main(String[] args) {
        double length,area;
        Circle circle=null;
        Triangle triangle;
        Lader lader;
        circle =new Circle(10);
        triangle = new Triangle(3,4,5);
        lader =new Lader(3,4,10);
        length= circle.getLength();
        System.out.println("圆的周长："+length);
        area=circle.getArea();
        System.out.println("圆的面积为："+area);
        length= triangle.getLength();
        System.out.println("三角形的周长："+length);
        area=triangle.getArea();
        System.out.println("三角形的面积为："+area);
        area=lader.getArea();
        System.out.println("梯形的面积为："+area);
        triangle.getABC(12,34,1);
        length= triangle.getLength();
        System.out.println("三角形的周长："+length);
        area=triangle.getArea();
        System.out.println("三角形的面积为："+area);
    }
}
